<?php
/**
 * this is recursive...
 * i'm going to have to include it
 * which means the functionality it provides
 * is required to FIND that functionality
 * 
 * @author David Christian Liedle <david.liedle@gmail.com>
 * @link   http://nmox.org/
 *
 */

if( $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'] ){

	$path = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];

} elseif( $_SERVER ){

	// more options
	$path = "/";

}

echo $path;
